Clear Data Table
AutomatR.DefaultActivities.Datatable.ClearDataTable
The "Clear Data Table" activity in AutomatR is part of the DataTable activities package, designed to clear all data within a specified DataTable. This activity helps streamline the data management process, ensuring that the DataTable is empty and ready for new data.
Properties
Name | Description |
---|---|
Input | |
Data Table | Specifies the DataTable object for which all data should be cleared. DataTable variables containing the target DataTable. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Clear Data Table" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
How to use:
- Drag and drop the "Clear Data Table" activity onto the workflow.
- Configure the properties by specifying the DataTable variable for which you want to clear all data.
- Optionally, configure the delay.
- Execute the workflow to clear all data within the specified DataTable.
Example: Consider an example where the "Clear Data Table" activity is used to clear all data from an existing DataTable:
Clear Data Table:
Data Table: existingDataTable
In this example, the activity clears all data from the "existingDataTable" DataTable, leaving it empty for the insertion of new data. Adjust the input properties as needed to accommodate various scenarios in your automation workflows.